package exo1;
public class Cercle extends Figure {

	double rayon;
	
	public double getRayon() {
		return rayon;
	}

	public void setRayon(double rayon) {
		this.rayon = rayon;
	}

	Cercle(double rayon)
	{
		this.rayon = rayon;
	}
	
	@Override
	public void afficherCaracteristiques() {
		System.out.println("cercle");
		
	}

	@Override
	public float perimetre() {
		return (float) (2.0 * Math.PI* rayon);
	}
}